using System;
using System.Drawing;
using System.Windows.Forms;

namespace PlanningGIS.Win.Controls
{
   
    public class ButtonEx : DevComponents.DotNetBar.ButtonX
    {
        /// <summary>
        /// 
        /// </summary>
        public ButtonEx()
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            //this.FlatStyle = FlatStyle.Popup;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pevent"></param>
        protected override void OnPaint(PaintEventArgs pevent)
        {
            base.OnPaint(pevent);
            ControlPaint.DrawComboButton(pevent.Graphics, 0, 0, this.Width, this.Height, 0);
           
        }
    }
}